﻿using IoC.Interfaces;

namespace IoC.Services
{
    public class Power : IPower
    {
        private IMicroPhone microPhone1;

        private IMicroPhone microPhone2;

        public Power(IMicroPhone microPhone1)
        {
            Console.WriteLine($"{GetType().Name} 被构造！");
            this.microPhone1 = microPhone1;
        }

        public Power(IMicroPhone microPhone1, IMicroPhone microPhone2)
        {
            Console.WriteLine($"{GetType().Name} 被构造！");
            this.microPhone1 = microPhone1;
            this.microPhone2 = microPhone2;
        }
    }
}
